projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225ef02
)
Fix code to be compilable with latest rustc:
author
Jauhien Piatlicki
<jpiatlicki@zertisa.com>
Thu, 14 Aug 2014 18:07:05 +0000
(20:07 +0200)
committer
Jauhien Piatlicki
<jpiatlicki@zertisa.com>
Fri, 15 Aug 2014 14:33:31 +0000
(16:33 +0200)
- splitn arguments order
Closes #371
src/cargo/core/source.rs
patch
|
blob
|
history
diff --git
a/src/cargo/core/source.rs
b/src/cargo/core/source.rs
index dfa80d06ded4b8476a8bbd3207c6f546b1061a98..ae415e130d7cbd4c10fdaa69fe6fc330e230071a 100644
(file)
--- a/
src/cargo/core/source.rs
+++ b/
src/cargo/core/source.rs
@@
-156,7
+156,7
@@
impl SourceId {
}
pub fn from_url(string: String) -> SourceId {
- let mut parts = string.as_slice().splitn(
'+', 1
);
+ let mut parts = string.as_slice().splitn(
1, '+'
);
let kind = parts.next().unwrap();
let url = parts.next().unwrap();